//
//  RecommendationsTableViewCell.m
//  Youhuiju
//
//  Created by yutenys on 16/7/20.
//  Copyright © 2016年 yutenys. All rights reserved.
//

#import "RecommendationsTableViewCell.h"

@interface RecommendationsTableViewCell ()

//后台可替换数据（图片和文字）
@property (weak, nonatomic) IBOutlet UIImageView *firstImg;
@property (weak, nonatomic) IBOutlet UIImageView *secondImg;
@property (weak, nonatomic) IBOutlet UIImageView *thirdImg;
@property (weak, nonatomic) IBOutlet UIImageView *fourthImg;
@property (weak, nonatomic) IBOutlet UILabel *firstLabel;
@property (weak, nonatomic) IBOutlet UILabel *secondLabel;
@property (weak, nonatomic) IBOutlet UILabel *thirdLabel;
@property (weak, nonatomic) IBOutlet UILabel *fourthLabel;



//适配
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imgWid;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imgHig;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imgTop;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imgLeading;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *countryLeading;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *specialLeading;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *communityLeading;




@end

@implementation RecommendationsTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.imgWid.constant = 46 * FitW;
    self.imgHig.constant = 46 * FitH;
    self.imgTop.constant = 21 * FitH;
    self.imgLeading.constant = 28 * FitW;
    
    self.countryLeading.constant = 44 * FitW;
    self.specialLeading.constant = 44 * FitW;
    self.communityLeading.constant = 44 * FitW;

}

- (IBAction)buttonClickedAction:(UIButton *)sender {
    if (self.clickButtonHandler)
    {
        self.clickButtonHandler(sender.tag);
    }
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
